package com.zmn.oms.common.constant;

import java.util.Objects;

/**
 * 类描述：短信微信groupId常量定义（可配置短信,微信）
 *
 * @author yule
 * @date 2019/11/01 15:22
 */

public class MessageRuleNameConsts {

    /**
     * 消息类型名称
     *
     * @param ruleId 模板组Id
     * @return 模板组Id名称
     */
    public static String getMessageRuleName(int ruleId) {
        if (Objects.equals(MessageConsts.ZMN_MSG_RULEID_RETAKE, ruleId)) {
            return "改派接单成功";
        }
        if (Objects.equals(MessageConsts.ZMN_MSG_RULEID_UPDATE_DUTYTIME, ruleId)) {
            return "改约时间";
        }
        if (Objects.equals(MessageConsts.ZMN_MSG_RULEID_VISIT_TIME_OUT, ruleId)) {
            return "迟到安抚";
        }
        if (Objects.equals(MessageConsts.ZMN_MSG_RULEID_USER_FAULT_REPORT, ruleId)) {
            return "工程师上门-用户故障上报";
        }

        switch (ruleId) {
            /**
             * 描述：啄木鸟消息 短信/微信 groupId
             */
            case MessageRuleIdConsts.ZMN_MSG_RULEID_ASSIGN:
                return "啄木鸟-订单分单(确认)";
            case MessageRuleIdConsts.ZMN_MSG_RULEID_ASSIGN_NO_LOGIN:
                return "啄木鸟-订单分单(确认)-未登录";
            case MessageRuleIdConsts.ZMN_MSG_RULEID_TAKE:
                return "啄木鸟-工程师领单";
            case MessageRuleIdConsts.ZMN_MSG_RULEID_MASTER_VISIT:
                return "啄木鸟-工程师上门";
            case MessageRuleIdConsts.ZMN_MSG_RULEID_COMPLETE:
                return "啄木鸟-工单完成";
            case MessageRuleIdConsts.ZMN_MSG_RULEID_CANCEL:
                return "啄木鸟-工单取消";
            case 10361:
            case 10317:
                return "啄木鸟-工单取消-家修匠-无法承接线索";
            case MessageRuleIdConsts.ZMN_MSG_RULEID_WARRANTY_CARD:
                return "啄木鸟-保修卡";
            case MessageRuleIdConsts.ZMN_MSG_RULEID_VVIP:
                return "啄木鸟-要客";
            case MessageRuleIdConsts.ZMN_MSG_RULEID_DEPOSIT_PAY:
                return "啄木鸟-定金待支付";
            case MessageRuleIdConsts.ZMN_MSG_RULEID_ORDER_PAY:
                return "啄木鸟-完成待支付";
            case MessageRuleIdConsts.ZMN_MSG_RULEID_QUOTATION:
                return "啄木鸟-计价器定价";
            case MessageRuleIdConsts.ZMN_MSG_RULEID_QUOTATION_CONFIRM:
                return "啄木鸟-计价器用户优惠及报价确认";
            case MessageRuleIdConsts.ZMN_MSG_RULEID_WARRANTY_CARD_ADD:
                return "啄木鸟-保修卡延保";
            case MessageRuleIdConsts.ZMN_MSG_RULEID_SERVICE_COMPLETE_CONFIRM:
                return "啄木鸟-服务完成待确认";
            /**
             * 描述：言而有信消息 短信/微信 groupId
             */
           /* case MessageRuleIdConsts. YEYX_MSG_RULEID_ASSIGN_TYPE_OUT:
                return "言而有信-订单分单(保外订单)";
            case MessageRuleIdConsts.YEYX_MSG_RULEID_ASSIGN_TYPE_IN:
                return "言而有信-订单分单(保内订单)";*/
            case MessageRuleIdConsts. YEYX_MSG_RULEID_ASSIGN_NO_LOGIN:
                return "言而有信-订单分单(确认)-未登录";
            case MessageRuleIdConsts. YEYX_MSG_RULEID_TAKE_TYPE_OUT:
                return "言而有信-工程师领单（保外）-（现分单消息）";
            case MessageRuleIdConsts. YEYX_MSG_RULEID_TAKE_TYPE_IN:
                return "言而有信-工程师领单（保内）- 现分单消息）";
            case MessageRuleIdConsts. YEYX_MSG_RULEID_MASTER_VISIT_TYPE_IN:
                return "言而有信-工程师上门(保内)";
            case MessageRuleIdConsts. YEYX_MSG_RULEID_COMPLETE_TYPE_OUT:
                return "言而有信-工单完成(保外订单)";
            case MessageRuleIdConsts. YEYX_MSG_RULEID_COMPLETE_TYPE_IN:
                return "言而有信-工单完成(保内订单)";
            case MessageRuleIdConsts. YEYX_MSG_RULEID_CANCEL_TYPE_OUT:
                return "言而有信-工单取消(保外)";
            case MessageRuleIdConsts. YEYX_MSG_RULEID_CANCEL_TYPE_IN:
                return "言而有信-工单取消(保内)";


            /**
             * 描述：川南环保消息 短信/微信 groupId
             *
             */
            case MessageRuleIdConsts.CNHB_MSG_RULEID_ASSIGN:
                return "川南环保-订单分单";
            case MessageRuleIdConsts.CNHB_MSG_RULEID_ASSIGN_NO_LOGIN:
                return "川南环保-订单分单-未登录";
            case MessageRuleIdConsts.CNHB_MSG_RULEID_TAKE:
                return "川南环保-工程师领单";
            case MessageRuleIdConsts.CNHB_MSG_RULEID_MASTER_VISIT:
                return "川南环保-工程师上门";
            case MessageRuleIdConsts.CNHB_MSG_RULEID_COMPLETE:
                return "川南环保-工单完成";
            case MessageRuleIdConsts.CNHB_MSG_RULEID_CANCEL:
                return "川南环保-工单取消";
            case MessageRuleIdConsts.CNHB_MSG_RULEID_WARRANTY_CARD:
                return "川南环保-保修卡";

            default:
                return "未知";
        }
    }

}